package com.ibangnuo.framework.domain.response.alipay;

import com.ibangnuo.framework.model.response.ResultCode;
import lombok.ToString;

/**
 * @Author: wwy
 * @Date: 2019-12-19 16:27
 */
@ToString
public enum  PayCode implements ResultCode {
    PAY_SUCCESS(true,10000,"支付成功"),
    PAY_FILL(false,20001,"支付失败"),
    PAY_ORDER_NOTEXISTS(false,20002,"订单不存在"),
    FREEZING_FUND_SUCCESS(true,10000,"授权成功"),
    FREEZING_FUND_FILL(false,20003,"授权失败"),
    REFUND_SUCCESS(true,10000,"退款成功"),
    REFUND_FILL(false,20004,"退款失败");
    //操作代码
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;
    private PayCode(boolean success, int code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }
    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
